package com.telit.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;


/**
 * @author liuwei
 * @description: 简单用户传输对象
 * @date 2021-05-17 10:13
 * @copyright 合肥市先进产业研究院&复凌科技
 **/
@Data
@ApiModel(value = "简单用户对象修改", description = "简单用户对象")
public class SysShortUserDto implements Serializable {

    private static final long serialVersionUID = 8945386906450196664L;

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键(新增可不填，修改必填)")
    @NotNull(message = "主键id不能为空!")
    private Long id;

    /**
     * 用户账号
     */
    @ApiModelProperty(value = "用户账户名", required = true)
    @Size(message = "用户账户名称过长！", max = 30)
    private String userName;

    /**
     * 真实姓名
     */
    @ApiModelProperty(value = "用户实名")
    @Size(message = "用户实名过长！", max = 30)
    private String realName;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    @Pattern(regexp = "^[1][3-9]\\d{9}$", message = "手机号格式不正确")
    private String mobile;

    /**
     * 电子邮箱
     */
    @ApiModelProperty(value = "电子邮箱")
    private String email;

    /**
     * 微信号
     */
    @ApiModelProperty(value = "微信号")
    @Size(message = "微信号过长！", max = 30)
    private String wechat;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注信息")
    @Size(message = "备注信息过长！", max = 255)
    private String remark;

    /**
     * 头像图标
     */
    @ApiModelProperty(value = "用户头像")
    @Size(message = "用户头像过长！", max = 255)
    private String icon;

}
